package com.fengzhi.web.service.ssh.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fengzhi.web.dao.ssh.IUserDao;
import com.fengzhi.web.entity.TUser;
import com.fengzhi.web.service.ssh.IUserService;

@Service
public class UserServiceImpl implements IUserService {

	// 通过spring ioc 注入实例化对象
	@Autowired
	private IUserDao userDao;

	@Override
	public TUser findUserByUsername(String username) {
		return userDao.findUserByUsername(username);
	}

	@Override
	public void addUser(TUser user) {
		userDao.addUser(user);
	}

}
